<?php
declare (strict_types = 1);

namespace app\common\validate;

use think\Validate;
class ClothTemp extends Validate{
	
    protected $rule = [
		
	];

    protected $message = [
		'number.unique'  => '该产品编号已存在！',
	];

    /**
     * 添加
     */
    public function sceneAdd(){
        return $this->only(['number'])->append('number', 'unique:cloth_main');
    }

    /**
     * 编辑
     */
    public function sceneEdit(){
        
    }
}
